package com.ruoyi.common.constant;

public enum HttpStatusCusCode {
    DOCTOR_INFO_NOT_FOUND(9001, "医生未注册，暂无法关注！"),
    HOS_INFO_NOT_FOUND(9002, "医院信息未找到"),
    PARAMS_NOT_NULL(9003, "医生ID和患者ID都不得为空"),
    DOCTOR_ID_NOT_FOUND(9004, "医生信息和ID不得为空"),
    GROUP_NOT_FOUNT(9005, "该分组不存在或已被封禁"),
    GROUP_NAME_NOT_FOUNT(9006, "分组名称,医生ID及医院ID不得为空"),
    GROUP_MEMBER_NULL(9007, "新建分组必须两人及以上"),
    USER_ID_NULL(9008, "用户ID不得为空"),
    USER_TYPE_ID_NULL(9009, "用户ID及用户类型不得为空"),
    GROUP_ID_NOT_FOUND(9010, "分组ID不得为空"),
    MEMBER_IS_EXIST(9011, "所选成员已经存在"),
    GROUP_MEMBER_NOT_FOUND(9012, "该分组下用户不存在"),
    GROUP_MEMBER_NO_POWER(9013, "该用户无权移出分组成员"),
    USER_MEMBER_NOT_IN_GROUP(9014, "该群组下没有该用户"),
    DEL_FAILED(9015, "移出分组成员失败"),
    DOCTOR_HOS_ID_NOT_FOUND(9016, "医生ID和医院ID都不得为空"),
    ID_NOT_FOUND(9017, "ID不得为空"),
    RELATION_NOT_FOUND(9018, "绑定关系不得为空"),
    USER_TYPE_NOT_NULL(9019, "userType不得为空");
    private final int code;
    private final String message;

    HttpStatusCusCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
